#注册

#检查ID是否重复
$execute if data storage dab:system gameContents.$(type)[{id:"$(id)"}] run return run function dab:system/register/.fail/id_repeat

#输入检查 通过后写入gameContents
$execute unless function dab:system/register/$(type)/input_check run return run execute if data storage dab:register parser.id run data modify storage dab:system gameContents.$(type) append from storage dab:register parser

#fail
function dab:system/register/.fail/unknown_type